import os
import threading
from config import GlobalVar as Gv


class MonkeyRun(threading.Thread):
    def __init__(self):
        super().__init__()

    def run(self):
        cmd_monkey_0 = "adb shell ps"
        cmd_monkey_1 = "print(2)"
        os.popen(eval(f"cmd_monkey_{Gv.monkey_mode}")).read()


if __name__ == '__main__':
    monkey = MonkeyRun()
    monkey.start()
